import http from '@/utils/request'

export default {
    teamNews: {
        url: `/cdfmzj_nky/f/main/teamNews`,
        name: '获取新闻',
        get: async function(data = {}) {
            return await http.get(this.url, data)
        }
    },
    // getNewDetails: {
    //     url: `/cdfmzj_nky/f/main/newDetails`,
    //     name: '获取新闻详情',
    //     get: async function(data = {}) {
    //         return await http.get(this.url, data)
    //     }
    // },
    getTeamList: {
        url: `/cdfmzj_nky/f/main/teamList`,
        name: '获取团队',
        get: async function(data = {}) {
            return await http.get(this.url, data)
        }
    },
    expertAdvice: {
        url: `/cdfmzj_nky/f/main/expertAdvice`,
        name: '专家建议',
        get: async function(data = {}) {
            return await http.get(this.url, data)
        }
    },
    technologyViewInfo: {
        url: `/cdfmzj_nky/f/main/technologyViewInfo`,
        name: '技术成果',
        get: async function(data = {}) {
            return await http.get(this.url, data)
        }
    },
    videoViewInfo: {
        url: `/cdfmzj_nky/f/main/videoViewInfo`,
        name: '视频列表',
        get: async function(data = {}) {
            return await http.get(this.url, data)
        }
    },
    commonList:{
        name: '通用列表接口',
        get: async function(url,data) {
            return await http.get(`/cdfmzj_nky/f/main/${url}`, data)
        }
    },
    commonDetails:{
        name: '通用详情接口',
        get: async function(url,data) {
            return await http.get(`/cdfmzj_nky/f/main/${url}`, data)
        }
    },
    listPage: {
        url: `/cdfmzj_nky/f/main/listPage`,
        name: '获取列表',
        get: async function(data = {}) {
            return await http.get(this.url, data,{isRes:true})
        }
    },
    expertAdviceListPage: {
        url: `/cdfmzj_nky/f/main/expertAdviceListPage`,
        name: '专家建议',
        get: async function(data = {}) {
            return await http.get(this.url, data)
        }
    },
    videoView: {
        url: `/cdfmzj_nky/f/main/videoView`,
        name: '获取视频详情',
        get: async function(data = {}) {
            return await http.get(this.url, data)
        }
    },
    videoViewInfoListPage: {
        url: `/cdfmzj_nky/f/main/videoViewInfoListPage`,
        name: '视频列表',
        get: async function(data = {}) {
            return await http.get(this.url, data,{loading:true})
        }
    },
    linkManageInfoList : {
        url: `/cdfmzj_nky/f/main/linkManageInfoList`,
        name: '获取友情链接',
        get: async function(data = {}) {
            return await http.get(this.url, data)
        }
    },
    getTeamInfo : {
        url: `/cdfmzj_nky/f/main/getTeamInfo`,
        name: '获取团队详情',
        get: async function(data = {}) {
            return await http.get(this.url, data)
        }
    },
    getTechnologyViewInfo : {
        url: `/cdfmzj_nky/f/main/getTechnologyViewInfo`,
        name: '获取技术成果详情',
        get: async function(data = {}) {
            return await http.get(this.url, data)
        }
    },
    technologyViewInfoListPage : {
        url: `/cdfmzj_nky/f/main/technologyViewInfoListPage`,
        name: '获取技术成果列表',
        get: async function(data = {}) {
            return await http.get(this.url, data)
        }
    },
}
